package net.sangpil.classes.utils.text
{
	import flash.text.AntiAliasType;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;

	public class SetTextField
	{
		public function SetTextField()
		{
		}
		
		public static function basic(str:String, format:TextFormat, embed:Boolean = false):TextField
		{
			trace('making text field');
			var temp:TextField = new TextField();
			temp.defaultTextFormat = format;
			temp.embedFonts = embed;
			temp.autoSize = TextFieldAutoSize.LEFT;
			temp.antiAliasType = AntiAliasType.ADVANCED;
			temp.text = str;
			return temp;
		}
		
	}
}